<?php
/**
 * Created by PhpStorm.
 * User: 
 * Date: 
 * Time: 
 */

namespace app\services\model;

use think\Config;
use think\Model;
use think\Db;

class CaseAttachment extends Model
{
    // 设置当前模型对应的完整数据表名称
    protected $table = 'case_attachment';
    
    /**
     * [deleteCaseAttachment description]
     * @param  [type] $caseId       [description]
     * @param  [type] $attachmentId [description]
     * @return [type]               [description]
     */
    public function deleteCaseAttachment($caseId,$attachmentId){
        $ob = Db::table("case_attachment")
        ->where("case_id",$caseId)
        ->where("id",$attachmentId);
        $ret = $ob->delete();
        return $ret;
    }
}